//定义具体的路由对象
import Home from '@/views/Home'
import Self from '@/views/Self'
import Login from '@/views/Login'
import Detail from '@/views/Detail'
import Singer from '@/views/Singer'
import List from '@/views/List'
import Songs from '@/views/Songs'
import Message from '@/views/Message'

//配置路由
export default [
    {
        path: '/my-home',
        component: Home,
        children: [

        ]
    },
    {
        path: '/my-self',
        component: Self,
    },
    {
        path: '/my-login',
        name: 'Login',
        component: Login,
    },
    {
        path: '/detail',
        name: 'Detail',
        component: Detail,
    },
    {
        path: '/singer',
        component: Singer,
        children: [
         
            
        ]
    },
    {
        path: '/list',
        component: List
    },
    {
        path: '/songs',
        component: Songs
    },
    {
        path: '/message',
        name: 'Message',
        component: Message,
    },
    //重定向：一运行让它在指定页面
    {
        path: '*',
        redirect: "/my-home"
    }
]